{smcl}
{txt}{sf}{ul off}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/clotairemit.edu/Dropbox (MIT)/J-PAL Raskin Transition/10_Analysis&Results/Agent Experiment Analysis/03_Logs/20240426_fake_kab_randomization_iterate.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}26 Apr 2024, 00:01:27
{txt}
{com}. 
. local treatedprobability = 0.3
{txt}
{com}. local target = 8300000 /*target # beneficiaries*/
{txt}
{com}. local numleaveout = 20 /*how many to leaveout to hit 8.3 million?*/
{txt}
{com}. local bottomX = 60 /*what percentile to draw the leaveouts from */
{txt}
{com}. 
. ** NOTE: I use original seed to replicate original strata assignments
. // I change this seed below to randomize treatment assignments within these strata
. set seed 18271234
{txt}
{com}. set sortseed 18271234
{txt}
{com}. set varabbrev on
{txt}
{com}. set more off
{txt}
{com}. 
. clear
{txt}
{com}. 
. insheet using "$importable/kab_priority1_2_import.csv"
{txt}(13 vars, 180 obs)

{com}. 
. * clean up data
. drop if no == .
{txt}(0 observations deleted)

{com}. count
  {res}180
{txt}
{com}. assert r(N) == 180
{txt}
{com}. 
. replace jumlahkpm = subinstr(jumlahkpm,",","",.)
{txt}(180 real changes made)

{com}. destring jumlahkpm, replace
{txt}jumlahkpm: all characters numeric; {res}replaced {txt}as {res}long
{txt}
{com}. 
. 
. * drop pilot locations
. g pilot = 1 if namakabupaten == "GOWA"
{txt}(179 missing values generated)

{com}. replace pilot = 1 if namakabupaten == "DELI SERDANG"
{txt}(1 real change made)

{com}. replace pilot = 1 if namakabupaten == "BOYOLALI"
{txt}(1 real change made)

{com}. replace pilot = 1 if namakabupaten == "TABANAN"
{txt}(1 real change made)

{com}. replace pilot = 1 if namakabupaten == "LOMBOK TIMUR"
{txt}(1 real change made)

{com}. replace pilot = 1 if namakabupaten == "KEDIRI"
{txt}(1 real change made)

{com}. replace pilot = 1 if namakabupaten == "KULON PROGO"
{txt}(1 real change made)

{com}. replace pilot = 1 if namakabupaten == "SIDOARJO"
{txt}(1 real change made)

{com}. replace pilot = 1 if namakabupaten == "JEMBER"
{txt}(1 real change made)

{com}. 
. * treat all java that are in top 120 in priority list
. // replace pilot = 1 if (namaprov == "BANTEN" | namaprov == "JAWA BARAT" | namaprov == "D I YOGYAKARTA"  | namaprov == "JAWA TENGAH" | namaprov == "JAWA TIMUR") & no <= 80
. replace pilot = 1 if (namaprov == "BANTEN" | namaprov == "JAWA BARAT" | namaprov == "D I YOGYAKARTA"  | namaprov == "JAWA TENGAH" | namaprov == "JAWA TIMUR") & no <= 80
{txt}(66 real changes made)

{com}. 
. egen temptotalkpmpilot = total(jumlahkpm) if pilot == 1
{txt}(105 missing values generated)

{com}. summ temptotalkpmpilot

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
temptotalk~t {c |}{res}         75     7103610           0    7103610    7103610
{txt}
{com}. local target_nonpilot = `target' - r(mean)
{txt}
{com}. display `target_nonpilot' /*this is the number of beneficiaries we need to get to end up at `target' at the end*/
{res}1196390
{txt}
{com}. 
. /* NOTE: treatments.xlsx file used in "170829 Phase in Randomization.do" is not produced by "170808 Kab Randomization.do" (instead it produces treatments.csv). An earlier version
>                 of "170808 Kab Randomization.do" must have produced it. The only difference is that treatments.xlsx includes variable pilotjava, which appears to be equal to 1 when pilot
>                 = 1 and javatreatforsure = 1. This produces 9 pilot districts. To make sure fake_treatments also has 9 districts, I create a separate pilotjava variable and replace pilot
>                 districts. */
. 
. * make sure there are 9 pilot districts
. gen pilotjava = 1 if (namaprov == "BANTEN" | namaprov == "JAWA BARAT" | namaprov == "D I YOGYAKARTA"  | namaprov == "JAWA TENGAH" | namaprov == "JAWA TIMUR") & no <= 80
{txt}(109 missing values generated)

{com}. replace pilot = .
{txt}(75 real changes made, 75 to missing)

{com}. replace pilot = 1 if namakabupaten == "GOWA"
{txt}(1 real change made)

{com}. replace pilot = 1 if namakabupaten == "DELI SERDANG"
{txt}(1 real change made)

{com}. replace pilot = 1 if namakabupaten == "BOYOLALI"
{txt}(1 real change made)

{com}. replace pilot = 1 if namakabupaten == "TABANAN"
{txt}(1 real change made)

{com}. replace pilot = 1 if namakabupaten == "LOMBOK TIMUR"
{txt}(1 real change made)

{com}. replace pilot = 1 if namakabupaten == "KEDIRI"
{txt}(1 real change made)

{com}. replace pilot = 1 if namakabupaten == "KULON PROGO"
{txt}(1 real change made)

{com}. replace pilot = 1 if namakabupaten == "SIDOARJO"
{txt}(1 real change made)

{com}. replace pilot = 1 if namakabupaten == "JEMBER"
{txt}(1 real change made)

{com}. 
. count if pilot == 1
  {res}9
{txt}
{com}. assert `r(N)' == 9
{txt}
{com}. 
. tempfile temp_all
{txt}
{com}. save `temp_all',replace
{txt}{p 0 4 2}
(file {bf}
/var/folders/23/7_md6wbn6ns7m_ppp9yb96sh0000gp/T//S_18300.000001{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
/var/folders/23/7_md6wbn6ns7m_ppp9yb96sh0000gp/T//S_18300.000001{rm}
saved
as .dta format
{p_end}

{com}. 
. * don't randomize for 9 pilots and for Java
. drop if pilot == 1 | pilotjava == 1
{txt}(75 observations deleted)

{com}. count
  {res}105
{txt}
{com}. *assert r(N) == 91**
. 
. ** Create holdout sample
. *** Find the cutoff value
. _pctile jumlahkpm, p(`bottomX')
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}23254.5
{txt}
{com}. 
. *** pick holdout sample
. g holdoutsampleeligible = 1 if jumlahkpm <= r(r1)
{txt}(42 missing values generated)

{com}. 
. sort jumlahkpm
{txt}
{com}. g temprandom = uniform() if holdoutsampleeligible  == 1
{txt}(42 missing values generated)

{com}. egen rankrand1 = rank(temprandom) if holdoutsampleeligible  == 1
{txt}(42 missing values generated)

{com}. g holdoutsample = 1 if rankrand1 <= `numleaveout'
{txt}(85 missing values generated)

{com}. replace holdoutsample = 0 if holdoutsample != 1
{txt}(85 real changes made)

{com}. 
. preserve
{txt}
{com}. keep if holdoutsample == 1
{txt}(85 observations deleted)

{com}. tempfile holdoutsamp
{txt}
{com}. save `holdoutsamp'
{txt}{p 0 4 2}
file {bf}
/var/folders/23/7_md6wbn6ns7m_ppp9yb96sh0000gp/T//S_18300.000003{rm}
saved
as .dta format
{p_end}

{com}. restore
{txt}
{com}. keep if holdoutsample == 0
{txt}(20 observations deleted)

{com}. 
. *** Stratification
. g provgroup = namaprov
{txt}
{com}. 
. replace provgroup = "SUMATERA_GROUP" if namaprov == "BENGKULU" | namaprov == "JAMBI" | namaprov == "LAMPUNG" | namaprov == "RIAU" | namaprov == "SUMATERA BARAT" | namaprov == "SUMATERA SELATAN" | namaprov == "KEP. BANGKA BELITUNG"
{txt}(21 real changes made)

{com}. replace provgroup = "JABAR_BANTEN_JATENG_DYI" if namaprov == "BANTEN" | namaprov == "JAWA BARAT" | namaprov == "D I YOGYAKARTA"  | namaprov == "JAWA TENGAH"
{txt}variable {bf}{res}provgroup{sf}{txt} was {bf}{res}str20{sf}{txt} now {bf}{res}str23{sf}
{txt}(6 real changes made)

{com}. replace provgroup = "KALIMANTAN" if namaprov == "KALIMANTAN BARAT" | namaprov  == "KALIMANTAN TENGAH" | namaprov  == "KALIMANTAN SELATAN" | namaprov == "KALIMANTAN TIMUR"
{txt}(10 real changes made)

{com}. replace provgroup = "SULAWESI_NONSEL" if namaprov == "SULAWESI UTARA" | namaprov == "GORONTALO" | namaprov == "SULAWESI TENGGARA" | namaprov == "SULAWESI TENGAH"
{txt}(8 real changes made)

{com}. 
. 
. egen stratum1 = group(provgroup)
{txt}
{com}. 
. 
. 
. ** for big strata make smaller strata by indeksgab
. g stratum2 = 1
{txt}
{com}. sort stratum1 jumlahkpm
{txt}
{com}. by stratum1: g rankwithinprov = _n
{txt}
{com}. by stratum1: g numwithinprov = _N
{txt}
{com}. g ptilewithinprov = (rankwithinprov-1) / numwithinprov
{txt}
{com}. 
. *subdivide large provinces into groups of at least 5
. g numsubstratum = max(floor(numwithinprov/5),1)
{txt}
{com}. 
. replace stratum2 = floor(ptilewithinprov*numsubstratum)+1  if holdoutsample != 1
{txt}(20 real changes made)

{com}. 
. tab stratum1 stratum2

{txt}group(prov {c |}                  stratum2
    group) {c |}         1          2          3          4 {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
         1 {c |}{res}         8          0          0          0 {txt}{c |}{res}         8 
{txt}         2 {c |}{res}         4          0          0          0 {txt}{c |}{res}         4 
{txt}         3 {c |}{res}         6          0          0          0 {txt}{c |}{res}         6 
{txt}         4 {c |}{res}         7          0          0          0 {txt}{c |}{res}         7 
{txt}         5 {c |}{res}         5          5          0          0 {txt}{c |}{res}        10 
{txt}         6 {c |}{res}         6          0          0          0 {txt}{c |}{res}         6 
{txt}         7 {c |}{res}         8          0          0          0 {txt}{c |}{res}         8 
{txt}         8 {c |}{res}         8          0          0          0 {txt}{c |}{res}         8 
{txt}         9 {c |}{res}         7          0          0          0 {txt}{c |}{res}         7 
{txt}        10 {c |}{res}         6          5          5          5 {txt}{c |}{res}        21 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}        65         10          5          5 {txt}{c |}{res}        85 
{txt}
{com}. 
. egen stratum = group(stratum1 stratum2)
{txt}
{com}. 
. 
. /*----------------------------------------------------*/
.                   /* Iterations */
. /*----------------------------------------------------*/
. /*
> Take 1000 random draws of the treatment assignments using the same strata.
> */
. 
. // Set the seed again
. // Original seed used above to replicate stratum assignments
. // now different seed used to randomize within these strata
. 
. 
. 
. set seed 71263791
{txt}
{com}. set sortseed 71263791
{txt}
{com}. // set obs 1
. // gen id = 1
. 
. qui forvalues n = 1 / 1000 {c -(}
Iteration Number 1
Iteration Number 2
Iteration Number 3
Iteration Number 4
Iteration Number 5
Iteration Number 6
Iteration Number 7
Iteration Number 8
Iteration Number 9
Iteration Number 10
Iteration Number 11
Iteration Number 12
Iteration Number 13
Iteration Number 14
Iteration Number 15
Iteration Number 16
Iteration Number 17
Iteration Number 18
Iteration Number 19
Iteration Number 20
Iteration Number 21
Iteration Number 22
Iteration Number 23
Iteration Number 24
Iteration Number 25
Iteration Number 26
Iteration Number 27
Iteration Number 28
Iteration Number 29
Iteration Number 30
Iteration Number 31
Iteration Number 32
Iteration Number 33
Iteration Number 34
Iteration Number 35
Iteration Number 36
Iteration Number 37
Iteration Number 38
Iteration Number 39
Iteration Number 40
Iteration Number 41
Iteration Number 42
Iteration Number 43
Iteration Number 44
Iteration Number 45
Iteration Number 46
Iteration Number 47
Iteration Number 48
Iteration Number 49
Iteration Number 50
Iteration Number 51
Iteration Number 52
Iteration Number 53
Iteration Number 54
Iteration Number 55
Iteration Number 56
Iteration Number 57
Iteration Number 58
Iteration Number 59
Iteration Number 60
Iteration Number 61
Iteration Number 62
Iteration Number 63
Iteration Number 64
Iteration Number 65
Iteration Number 66
Iteration Number 67
Iteration Number 68
Iteration Number 69
Iteration Number 70
Iteration Number 71
Iteration Number 72
Iteration Number 73
Iteration Number 74
Iteration Number 75
Iteration Number 76
Iteration Number 77
Iteration Number 78
Iteration Number 79
Iteration Number 80
Iteration Number 81
Iteration Number 82
Iteration Number 83
Iteration Number 84
Iteration Number 85
Iteration Number 86
Iteration Number 87
Iteration Number 88
Iteration Number 89
Iteration Number 90
Iteration Number 91
Iteration Number 92
Iteration Number 93
Iteration Number 94
Iteration Number 95
Iteration Number 96
Iteration Number 97
Iteration Number 98
Iteration Number 99
Iteration Number 100
Iteration Number 101
Iteration Number 102
Iteration Number 103
Iteration Number 104
Iteration Number 105
Iteration Number 106
Iteration Number 107
Iteration Number 108
Iteration Number 109
Iteration Number 110
Iteration Number 111
Iteration Number 112
Iteration Number 113
Iteration Number 114
Iteration Number 115
Iteration Number 116
Iteration Number 117
Iteration Number 118
Iteration Number 119
Iteration Number 120
Iteration Number 121
Iteration Number 122
Iteration Number 123
Iteration Number 124
Iteration Number 125
Iteration Number 126
Iteration Number 127
Iteration Number 128
Iteration Number 129
Iteration Number 130
Iteration Number 131
Iteration Number 132
Iteration Number 133
Iteration Number 134
Iteration Number 135
Iteration Number 136
Iteration Number 137
Iteration Number 138
Iteration Number 139
Iteration Number 140
Iteration Number 141
Iteration Number 142
Iteration Number 143
Iteration Number 144
Iteration Number 145
Iteration Number 146
Iteration Number 147
Iteration Number 148
Iteration Number 149
Iteration Number 150
Iteration Number 151
Iteration Number 152
Iteration Number 153
Iteration Number 154
Iteration Number 155
Iteration Number 156
Iteration Number 157
Iteration Number 158
Iteration Number 159
Iteration Number 160
Iteration Number 161
Iteration Number 162
Iteration Number 163
Iteration Number 164
Iteration Number 165
Iteration Number 166
Iteration Number 167
Iteration Number 168
Iteration Number 169
Iteration Number 170
Iteration Number 171
Iteration Number 172
Iteration Number 173
Iteration Number 174
Iteration Number 175
Iteration Number 176
Iteration Number 177
Iteration Number 178
Iteration Number 179
Iteration Number 180
Iteration Number 181
Iteration Number 182
Iteration Number 183
Iteration Number 184
Iteration Number 185
Iteration Number 186
Iteration Number 187
Iteration Number 188
Iteration Number 189
Iteration Number 190
Iteration Number 191
Iteration Number 192
Iteration Number 193
Iteration Number 194
Iteration Number 195
Iteration Number 196
Iteration Number 197
Iteration Number 198
Iteration Number 199
Iteration Number 200
Iteration Number 201
Iteration Number 202
Iteration Number 203
Iteration Number 204
Iteration Number 205
Iteration Number 206
Iteration Number 207
Iteration Number 208
Iteration Number 209
Iteration Number 210
Iteration Number 211
Iteration Number 212
Iteration Number 213
Iteration Number 214
Iteration Number 215
Iteration Number 216
Iteration Number 217
Iteration Number 218
Iteration Number 219
Iteration Number 220
Iteration Number 221
Iteration Number 222
Iteration Number 223
Iteration Number 224
Iteration Number 225
Iteration Number 226
Iteration Number 227
Iteration Number 228
Iteration Number 229
Iteration Number 230
Iteration Number 231
Iteration Number 232
Iteration Number 233
Iteration Number 234
Iteration Number 235
Iteration Number 236
Iteration Number 237
Iteration Number 238
Iteration Number 239
Iteration Number 240
Iteration Number 241
Iteration Number 242
Iteration Number 243
Iteration Number 244
Iteration Number 245
Iteration Number 246
Iteration Number 247
Iteration Number 248
Iteration Number 249
Iteration Number 250
Iteration Number 251
Iteration Number 252
Iteration Number 253
Iteration Number 254
Iteration Number 255
Iteration Number 256
Iteration Number 257
Iteration Number 258
Iteration Number 259
Iteration Number 260
Iteration Number 261
Iteration Number 262
Iteration Number 263
Iteration Number 264
Iteration Number 265
Iteration Number 266
Iteration Number 267
Iteration Number 268
Iteration Number 269
Iteration Number 270
Iteration Number 271
Iteration Number 272
Iteration Number 273
Iteration Number 274
Iteration Number 275
Iteration Number 276
Iteration Number 277
Iteration Number 278
Iteration Number 279
Iteration Number 280
Iteration Number 281
Iteration Number 282
Iteration Number 283
Iteration Number 284
Iteration Number 285
Iteration Number 286
Iteration Number 287
Iteration Number 288
Iteration Number 289
Iteration Number 290
Iteration Number 291
Iteration Number 292
Iteration Number 293
Iteration Number 294
Iteration Number 295
Iteration Number 296
Iteration Number 297
Iteration Number 298
Iteration Number 299
Iteration Number 300
Iteration Number 301
Iteration Number 302
Iteration Number 303
Iteration Number 304
Iteration Number 305
Iteration Number 306
Iteration Number 307
Iteration Number 308
Iteration Number 309
Iteration Number 310
Iteration Number 311
Iteration Number 312
Iteration Number 313
Iteration Number 314
Iteration Number 315
Iteration Number 316
Iteration Number 317
Iteration Number 318
Iteration Number 319
Iteration Number 320
Iteration Number 321
Iteration Number 322
Iteration Number 323
Iteration Number 324
Iteration Number 325
Iteration Number 326
Iteration Number 327
Iteration Number 328
Iteration Number 329
Iteration Number 330
Iteration Number 331
Iteration Number 332
Iteration Number 333
Iteration Number 334
Iteration Number 335
Iteration Number 336
Iteration Number 337
Iteration Number 338
Iteration Number 339
Iteration Number 340
Iteration Number 341
Iteration Number 342
Iteration Number 343
Iteration Number 344
Iteration Number 345
Iteration Number 346
Iteration Number 347
Iteration Number 348
Iteration Number 349
Iteration Number 350
Iteration Number 351
Iteration Number 352
Iteration Number 353
Iteration Number 354
Iteration Number 355
Iteration Number 356
Iteration Number 357
Iteration Number 358
Iteration Number 359
Iteration Number 360
Iteration Number 361
Iteration Number 362
Iteration Number 363
Iteration Number 364
Iteration Number 365
Iteration Number 366
Iteration Number 367
Iteration Number 368
Iteration Number 369
Iteration Number 370
Iteration Number 371
Iteration Number 372
Iteration Number 373
Iteration Number 374
Iteration Number 375
Iteration Number 376
Iteration Number 377
Iteration Number 378
Iteration Number 379
Iteration Number 380
Iteration Number 381
Iteration Number 382
Iteration Number 383
Iteration Number 384
Iteration Number 385
Iteration Number 386
Iteration Number 387
Iteration Number 388
Iteration Number 389
Iteration Number 390
Iteration Number 391
Iteration Number 392
Iteration Number 393
Iteration Number 394
Iteration Number 395
Iteration Number 396
Iteration Number 397
Iteration Number 398
Iteration Number 399
Iteration Number 400
Iteration Number 401
Iteration Number 402
Iteration Number 403
Iteration Number 404
Iteration Number 405
Iteration Number 406
Iteration Number 407
Iteration Number 408
Iteration Number 409
Iteration Number 410
Iteration Number 411
Iteration Number 412
Iteration Number 413
Iteration Number 414
Iteration Number 415
Iteration Number 416
Iteration Number 417
Iteration Number 418
Iteration Number 419
Iteration Number 420
Iteration Number 421
Iteration Number 422
Iteration Number 423
Iteration Number 424
Iteration Number 425
Iteration Number 426
Iteration Number 427
Iteration Number 428
Iteration Number 429
Iteration Number 430
Iteration Number 431
Iteration Number 432
Iteration Number 433
Iteration Number 434
Iteration Number 435
Iteration Number 436
Iteration Number 437
Iteration Number 438
Iteration Number 439
Iteration Number 440
Iteration Number 441
Iteration Number 442
Iteration Number 443
Iteration Number 444
Iteration Number 445
Iteration Number 446
Iteration Number 447
Iteration Number 448
Iteration Number 449
Iteration Number 450
Iteration Number 451
Iteration Number 452
Iteration Number 453
Iteration Number 454
Iteration Number 455
Iteration Number 456
Iteration Number 457
Iteration Number 458
Iteration Number 459
Iteration Number 460
Iteration Number 461
Iteration Number 462
Iteration Number 463
Iteration Number 464
Iteration Number 465
Iteration Number 466
Iteration Number 467
Iteration Number 468
Iteration Number 469
Iteration Number 470
Iteration Number 471
Iteration Number 472
Iteration Number 473
Iteration Number 474
Iteration Number 475
Iteration Number 476
Iteration Number 477
Iteration Number 478
Iteration Number 479
Iteration Number 480
Iteration Number 481
Iteration Number 482
Iteration Number 483
Iteration Number 484
Iteration Number 485
Iteration Number 486
Iteration Number 487
Iteration Number 488
Iteration Number 489
Iteration Number 490
Iteration Number 491
Iteration Number 492
Iteration Number 493
Iteration Number 494
Iteration Number 495
Iteration Number 496
Iteration Number 497
Iteration Number 498
Iteration Number 499
Iteration Number 500
Iteration Number 501
Iteration Number 502
Iteration Number 503
Iteration Number 504
Iteration Number 505
Iteration Number 506
Iteration Number 507
Iteration Number 508
Iteration Number 509
Iteration Number 510
Iteration Number 511
Iteration Number 512
Iteration Number 513
Iteration Number 514
Iteration Number 515
Iteration Number 516
Iteration Number 517
Iteration Number 518
Iteration Number 519
Iteration Number 520
Iteration Number 521
Iteration Number 522
Iteration Number 523
Iteration Number 524
Iteration Number 525
Iteration Number 526
Iteration Number 527
Iteration Number 528
Iteration Number 529
Iteration Number 530
Iteration Number 531
Iteration Number 532
Iteration Number 533
Iteration Number 534
Iteration Number 535
Iteration Number 536
Iteration Number 537
Iteration Number 538
Iteration Number 539
Iteration Number 540
Iteration Number 541
Iteration Number 542
Iteration Number 543
Iteration Number 544
Iteration Number 545
Iteration Number 546
Iteration Number 547
Iteration Number 548
Iteration Number 549
Iteration Number 550
Iteration Number 551
Iteration Number 552
Iteration Number 553
Iteration Number 554
Iteration Number 555
Iteration Number 556
Iteration Number 557
Iteration Number 558
Iteration Number 559
Iteration Number 560
Iteration Number 561
Iteration Number 562
Iteration Number 563
Iteration Number 564
Iteration Number 565
Iteration Number 566
Iteration Number 567
Iteration Number 568
Iteration Number 569
Iteration Number 570
Iteration Number 571
Iteration Number 572
Iteration Number 573
Iteration Number 574
Iteration Number 575
Iteration Number 576
Iteration Number 577
Iteration Number 578
Iteration Number 579
Iteration Number 580
Iteration Number 581
Iteration Number 582
Iteration Number 583
Iteration Number 584
Iteration Number 585
Iteration Number 586
Iteration Number 587
Iteration Number 588
Iteration Number 589
Iteration Number 590
Iteration Number 591
Iteration Number 592
Iteration Number 593
Iteration Number 594
Iteration Number 595
Iteration Number 596
Iteration Number 597
Iteration Number 598
Iteration Number 599
Iteration Number 600
Iteration Number 601
Iteration Number 602
Iteration Number 603
Iteration Number 604
Iteration Number 605
Iteration Number 606
Iteration Number 607
Iteration Number 608
Iteration Number 609
Iteration Number 610
Iteration Number 611
Iteration Number 612
Iteration Number 613
Iteration Number 614
Iteration Number 615
Iteration Number 616
Iteration Number 617
Iteration Number 618
Iteration Number 619
Iteration Number 620
Iteration Number 621
Iteration Number 622
Iteration Number 623
Iteration Number 624
Iteration Number 625
Iteration Number 626
Iteration Number 627
Iteration Number 628
Iteration Number 629
Iteration Number 630
Iteration Number 631
Iteration Number 632
Iteration Number 633
Iteration Number 634
Iteration Number 635
Iteration Number 636
Iteration Number 637
Iteration Number 638
Iteration Number 639
Iteration Number 640
Iteration Number 641
Iteration Number 642
Iteration Number 643
Iteration Number 644
Iteration Number 645
Iteration Number 646
Iteration Number 647
Iteration Number 648
Iteration Number 649
Iteration Number 650
Iteration Number 651
Iteration Number 652
Iteration Number 653
Iteration Number 654
Iteration Number 655
Iteration Number 656
Iteration Number 657
Iteration Number 658
Iteration Number 659
Iteration Number 660
Iteration Number 661
Iteration Number 662
Iteration Number 663
Iteration Number 664
Iteration Number 665
Iteration Number 666
Iteration Number 667
Iteration Number 668
Iteration Number 669
Iteration Number 670
Iteration Number 671
Iteration Number 672
Iteration Number 673
Iteration Number 674
Iteration Number 675
Iteration Number 676
Iteration Number 677
Iteration Number 678
Iteration Number 679
Iteration Number 680
Iteration Number 681
Iteration Number 682
Iteration Number 683
Iteration Number 684
Iteration Number 685
Iteration Number 686
Iteration Number 687
Iteration Number 688
Iteration Number 689
Iteration Number 690
Iteration Number 691
Iteration Number 692
Iteration Number 693
Iteration Number 694
Iteration Number 695
Iteration Number 696
Iteration Number 697
Iteration Number 698
Iteration Number 699
Iteration Number 700
Iteration Number 701
Iteration Number 702
Iteration Number 703
Iteration Number 704
Iteration Number 705
Iteration Number 706
Iteration Number 707
Iteration Number 708
Iteration Number 709
Iteration Number 710
Iteration Number 711
Iteration Number 712
Iteration Number 713
Iteration Number 714
Iteration Number 715
Iteration Number 716
Iteration Number 717
Iteration Number 718
Iteration Number 719
Iteration Number 720
Iteration Number 721
Iteration Number 722
Iteration Number 723
Iteration Number 724
Iteration Number 725
Iteration Number 726
Iteration Number 727
Iteration Number 728
Iteration Number 729
Iteration Number 730
Iteration Number 731
Iteration Number 732
Iteration Number 733
Iteration Number 734
Iteration Number 735
Iteration Number 736
Iteration Number 737
Iteration Number 738
Iteration Number 739
Iteration Number 740
Iteration Number 741
Iteration Number 742
Iteration Number 743
Iteration Number 744
Iteration Number 745
Iteration Number 746
Iteration Number 747
Iteration Number 748
Iteration Number 749
Iteration Number 750
Iteration Number 751
Iteration Number 752
Iteration Number 753
Iteration Number 754
Iteration Number 755
Iteration Number 756
Iteration Number 757
Iteration Number 758
Iteration Number 759
Iteration Number 760
Iteration Number 761
Iteration Number 762
Iteration Number 763
Iteration Number 764
Iteration Number 765
Iteration Number 766
Iteration Number 767
Iteration Number 768
Iteration Number 769
Iteration Number 770
Iteration Number 771
Iteration Number 772
Iteration Number 773
Iteration Number 774
Iteration Number 775
Iteration Number 776
Iteration Number 777
Iteration Number 778
Iteration Number 779
Iteration Number 780
Iteration Number 781
Iteration Number 782
Iteration Number 783
Iteration Number 784
Iteration Number 785
Iteration Number 786
Iteration Number 787
Iteration Number 788
Iteration Number 789
Iteration Number 790
Iteration Number 791
Iteration Number 792
Iteration Number 793
Iteration Number 794
Iteration Number 795
Iteration Number 796
Iteration Number 797
Iteration Number 798
Iteration Number 799
Iteration Number 800
Iteration Number 801
Iteration Number 802
Iteration Number 803
Iteration Number 804
Iteration Number 805
Iteration Number 806
Iteration Number 807
Iteration Number 808
Iteration Number 809
Iteration Number 810
Iteration Number 811
Iteration Number 812
Iteration Number 813
Iteration Number 814
Iteration Number 815
Iteration Number 816
Iteration Number 817
Iteration Number 818
Iteration Number 819
Iteration Number 820
Iteration Number 821
Iteration Number 822
Iteration Number 823
Iteration Number 824
Iteration Number 825
Iteration Number 826
Iteration Number 827
Iteration Number 828
Iteration Number 829
Iteration Number 830
Iteration Number 831
Iteration Number 832
Iteration Number 833
Iteration Number 834
Iteration Number 835
Iteration Number 836
Iteration Number 837
Iteration Number 838
Iteration Number 839
Iteration Number 840
Iteration Number 841
Iteration Number 842
Iteration Number 843
Iteration Number 844
Iteration Number 845
Iteration Number 846
Iteration Number 847
Iteration Number 848
Iteration Number 849
Iteration Number 850
Iteration Number 851
Iteration Number 852
Iteration Number 853
Iteration Number 854
Iteration Number 855
Iteration Number 856
Iteration Number 857
Iteration Number 858
Iteration Number 859
Iteration Number 860
Iteration Number 861
Iteration Number 862
Iteration Number 863
Iteration Number 864
Iteration Number 865
Iteration Number 866
Iteration Number 867
Iteration Number 868
Iteration Number 869
Iteration Number 870
Iteration Number 871
Iteration Number 872
Iteration Number 873
Iteration Number 874
Iteration Number 875
Iteration Number 876
Iteration Number 877
Iteration Number 878
Iteration Number 879
Iteration Number 880
Iteration Number 881
Iteration Number 882
Iteration Number 883
Iteration Number 884
Iteration Number 885
Iteration Number 886
Iteration Number 887
Iteration Number 888
Iteration Number 889
Iteration Number 890
Iteration Number 891
Iteration Number 892
Iteration Number 893
Iteration Number 894
Iteration Number 895
Iteration Number 896
Iteration Number 897
Iteration Number 898
Iteration Number 899
Iteration Number 900
Iteration Number 901
Iteration Number 902
Iteration Number 903
Iteration Number 904
Iteration Number 905
Iteration Number 906
Iteration Number 907
Iteration Number 908
Iteration Number 909
Iteration Number 910
Iteration Number 911
Iteration Number 912
Iteration Number 913
Iteration Number 914
Iteration Number 915
Iteration Number 916
Iteration Number 917
Iteration Number 918
Iteration Number 919
Iteration Number 920
Iteration Number 921
Iteration Number 922
Iteration Number 923
Iteration Number 924
Iteration Number 925
Iteration Number 926
Iteration Number 927
Iteration Number 928
Iteration Number 929
Iteration Number 930
Iteration Number 931
Iteration Number 932
Iteration Number 933
Iteration Number 934
Iteration Number 935
Iteration Number 936
Iteration Number 937
Iteration Number 938
Iteration Number 939
Iteration Number 940
Iteration Number 941
Iteration Number 942
Iteration Number 943
Iteration Number 944
Iteration Number 945
Iteration Number 946
Iteration Number 947
Iteration Number 948
Iteration Number 949
Iteration Number 950
Iteration Number 951
Iteration Number 952
Iteration Number 953
Iteration Number 954
Iteration Number 955
Iteration Number 956
Iteration Number 957
Iteration Number 958
Iteration Number 959
Iteration Number 960
Iteration Number 961
Iteration Number 962
Iteration Number 963
Iteration Number 964
Iteration Number 965
Iteration Number 966
Iteration Number 967
Iteration Number 968
Iteration Number 969
Iteration Number 970
Iteration Number 971
Iteration Number 972
Iteration Number 973
Iteration Number 974
Iteration Number 975
Iteration Number 976
Iteration Number 977
Iteration Number 978
Iteration Number 979
Iteration Number 980
Iteration Number 981
Iteration Number 982
Iteration Number 983
Iteration Number 984
Iteration Number 985
Iteration Number 986
Iteration Number 987
Iteration Number 988
Iteration Number 989
Iteration Number 990
Iteration Number 991
Iteration Number 992
Iteration Number 993
Iteration Number 994
Iteration Number 995
Iteration Number 996
Iteration Number 997
Iteration Number 998
Iteration Number 999
Iteration Number 1000
{txt}
{com}. 
. u `iterate1', clear
{txt}
{com}. rename finalstratum1 finalstratum
{res}{txt}
{com}. qui forvalues n = 2 / 1000 {c -(}
Merge number 1
Merge number 2
Merge number 3
Merge number 4
Merge number 5
Merge number 6
Merge number 7
Merge number 8
Merge number 9
Merge number 10
Merge number 11
Merge number 12
Merge number 13
Merge number 14
Merge number 15
Merge number 16
Merge number 17
Merge number 18
Merge number 19
Merge number 20
Merge number 21
Merge number 22
Merge number 23
Merge number 24
Merge number 25
Merge number 26
Merge number 27
Merge number 28
Merge number 29
Merge number 30
Merge number 31
Merge number 32
Merge number 33
Merge number 34
Merge number 35
Merge number 36
Merge number 37
Merge number 38
Merge number 39
Merge number 40
Merge number 41
Merge number 42
Merge number 43
Merge number 44
Merge number 45
Merge number 46
Merge number 47
Merge number 48
Merge number 49
Merge number 50
Merge number 51
Merge number 52
Merge number 53
Merge number 54
Merge number 55
Merge number 56
Merge number 57
Merge number 58
Merge number 59
Merge number 60
Merge number 61
Merge number 62
Merge number 63
Merge number 64
Merge number 65
Merge number 66
Merge number 67
Merge number 68
Merge number 69
Merge number 70
Merge number 71
Merge number 72
Merge number 73
Merge number 74
Merge number 75
Merge number 76
Merge number 77
Merge number 78
Merge number 79
Merge number 80
Merge number 81
Merge number 82
Merge number 83
Merge number 84
Merge number 85
Merge number 86
Merge number 87
Merge number 88
Merge number 89
Merge number 90
Merge number 91
Merge number 92
Merge number 93
Merge number 94
Merge number 95
Merge number 96
Merge number 97
Merge number 98
Merge number 99
Merge number 100
Merge number 101
Merge number 102
Merge number 103
Merge number 104
Merge number 105
Merge number 106
Merge number 107
Merge number 108
Merge number 109
Merge number 110
Merge number 111
Merge number 112
Merge number 113
Merge number 114
Merge number 115
Merge number 116
Merge number 117
Merge number 118
Merge number 119
Merge number 120
Merge number 121
Merge number 122
Merge number 123
Merge number 124
Merge number 125
Merge number 126
Merge number 127
Merge number 128
Merge number 129
Merge number 130
Merge number 131
Merge number 132
Merge number 133
Merge number 134
Merge number 135
Merge number 136
Merge number 137
Merge number 138
Merge number 139
Merge number 140
Merge number 141
Merge number 142
Merge number 143
Merge number 144
Merge number 145
Merge number 146
Merge number 147
Merge number 148
Merge number 149
Merge number 150
Merge number 151
Merge number 152
Merge number 153
Merge number 154
Merge number 155
Merge number 156
Merge number 157
Merge number 158
Merge number 159
Merge number 160
Merge number 161
Merge number 162
Merge number 163
Merge number 164
Merge number 165
Merge number 166
Merge number 167
Merge number 168
Merge number 169
Merge number 170
Merge number 171
Merge number 172
Merge number 173
Merge number 174
Merge number 175
Merge number 176
Merge number 177
Merge number 178
Merge number 179
Merge number 180
Merge number 181
Merge number 182
Merge number 183
Merge number 184
Merge number 185
Merge number 186
Merge number 187
Merge number 188
Merge number 189
Merge number 190
Merge number 191
Merge number 192
Merge number 193
Merge number 194
Merge number 195
Merge number 196
Merge number 197
Merge number 198
Merge number 199
Merge number 200
Merge number 201
Merge number 202
Merge number 203
Merge number 204
Merge number 205
Merge number 206
Merge number 207
Merge number 208
Merge number 209
Merge number 210
Merge number 211
Merge number 212
Merge number 213
Merge number 214
Merge number 215
Merge number 216
Merge number 217
Merge number 218
Merge number 219
Merge number 220
Merge number 221
Merge number 222
Merge number 223
Merge number 224
Merge number 225
Merge number 226
Merge number 227
Merge number 228
Merge number 229
Merge number 230
Merge number 231
Merge number 232
Merge number 233
Merge number 234
Merge number 235
Merge number 236
Merge number 237
Merge number 238
Merge number 239
Merge number 240
Merge number 241
Merge number 242
Merge number 243
Merge number 244
Merge number 245
Merge number 246
Merge number 247
Merge number 248
Merge number 249
Merge number 250
Merge number 251
Merge number 252
Merge number 253
Merge number 254
Merge number 255
Merge number 256
Merge number 257
Merge number 258
Merge number 259
Merge number 260
Merge number 261
Merge number 262
Merge number 263
Merge number 264
Merge number 265
Merge number 266
Merge number 267
Merge number 268
Merge number 269
Merge number 270
Merge number 271
Merge number 272
Merge number 273
Merge number 274
Merge number 275
Merge number 276
Merge number 277
Merge number 278
Merge number 279
Merge number 280
Merge number 281
Merge number 282
Merge number 283
Merge number 284
Merge number 285
Merge number 286
Merge number 287
Merge number 288
Merge number 289
Merge number 290
Merge number 291
Merge number 292
Merge number 293
Merge number 294
Merge number 295
Merge number 296
Merge number 297
Merge number 298
Merge number 299
Merge number 300
Merge number 301
Merge number 302
Merge number 303
Merge number 304
Merge number 305
Merge number 306
Merge number 307
Merge number 308
Merge number 309
Merge number 310
Merge number 311
Merge number 312
Merge number 313
Merge number 314
Merge number 315
Merge number 316
Merge number 317
Merge number 318
Merge number 319
Merge number 320
Merge number 321
Merge number 322
Merge number 323
Merge number 324
Merge number 325
Merge number 326
Merge number 327
Merge number 328
Merge number 329
Merge number 330
Merge number 331
Merge number 332
Merge number 333
Merge number 334
Merge number 335
Merge number 336
Merge number 337
Merge number 338
Merge number 339
Merge number 340
Merge number 341
Merge number 342
Merge number 343
Merge number 344
Merge number 345
Merge number 346
Merge number 347
Merge number 348
Merge number 349
Merge number 350
Merge number 351
Merge number 352
Merge number 353
Merge number 354
Merge number 355
Merge number 356
Merge number 357
Merge number 358
Merge number 359
Merge number 360
Merge number 361
Merge number 362
Merge number 363
Merge number 364
Merge number 365
Merge number 366
Merge number 367
Merge number 368
Merge number 369
Merge number 370
Merge number 371
Merge number 372
Merge number 373
Merge number 374
Merge number 375
Merge number 376
Merge number 377
Merge number 378
Merge number 379
Merge number 380
Merge number 381
Merge number 382
Merge number 383
Merge number 384
Merge number 385
Merge number 386
Merge number 387
Merge number 388
Merge number 389
Merge number 390
Merge number 391
Merge number 392
Merge number 393
Merge number 394
Merge number 395
Merge number 396
Merge number 397
Merge number 398
Merge number 399
Merge number 400
Merge number 401
Merge number 402
Merge number 403
Merge number 404
Merge number 405
Merge number 406
Merge number 407
Merge number 408
Merge number 409
Merge number 410
Merge number 411
Merge number 412
Merge number 413
Merge number 414
Merge number 415
Merge number 416
Merge number 417
Merge number 418
Merge number 419
Merge number 420
Merge number 421
Merge number 422
Merge number 423
Merge number 424
Merge number 425
Merge number 426
Merge number 427
Merge number 428
Merge number 429
Merge number 430
Merge number 431
Merge number 432
Merge number 433
Merge number 434
Merge number 435
Merge number 436
Merge number 437
Merge number 438
Merge number 439
Merge number 440
Merge number 441
Merge number 442
Merge number 443
Merge number 444
Merge number 445
Merge number 446
Merge number 447
Merge number 448
Merge number 449
Merge number 450
Merge number 451
Merge number 452
Merge number 453
Merge number 454
Merge number 455
Merge number 456
Merge number 457
Merge number 458
Merge number 459
Merge number 460
Merge number 461
Merge number 462
Merge number 463
Merge number 464
Merge number 465
Merge number 466
Merge number 467
Merge number 468
Merge number 469
Merge number 470
Merge number 471
Merge number 472
Merge number 473
Merge number 474
Merge number 475
Merge number 476
Merge number 477
Merge number 478
Merge number 479
Merge number 480
Merge number 481
Merge number 482
Merge number 483
Merge number 484
Merge number 485
Merge number 486
Merge number 487
Merge number 488
Merge number 489
Merge number 490
Merge number 491
Merge number 492
Merge number 493
Merge number 494
Merge number 495
Merge number 496
Merge number 497
Merge number 498
Merge number 499
Merge number 500
Merge number 501
Merge number 502
Merge number 503
Merge number 504
Merge number 505
Merge number 506
Merge number 507
Merge number 508
Merge number 509
Merge number 510
Merge number 511
Merge number 512
Merge number 513
Merge number 514
Merge number 515
Merge number 516
Merge number 517
Merge number 518
Merge number 519
Merge number 520
Merge number 521
Merge number 522
Merge number 523
Merge number 524
Merge number 525
Merge number 526
Merge number 527
Merge number 528
Merge number 529
Merge number 530
Merge number 531
Merge number 532
Merge number 533
Merge number 534
Merge number 535
Merge number 536
Merge number 537
Merge number 538
Merge number 539
Merge number 540
Merge number 541
Merge number 542
Merge number 543
Merge number 544
Merge number 545
Merge number 546
Merge number 547
Merge number 548
Merge number 549
Merge number 550
Merge number 551
Merge number 552
Merge number 553
Merge number 554
Merge number 555
Merge number 556
Merge number 557
Merge number 558
Merge number 559
Merge number 560
Merge number 561
Merge number 562
Merge number 563
Merge number 564
Merge number 565
Merge number 566
Merge number 567
Merge number 568
Merge number 569
Merge number 570
Merge number 571
Merge number 572
Merge number 573
Merge number 574
Merge number 575
Merge number 576
Merge number 577
Merge number 578
Merge number 579
Merge number 580
Merge number 581
Merge number 582
Merge number 583
Merge number 584
Merge number 585
Merge number 586
Merge number 587
Merge number 588
Merge number 589
Merge number 590
Merge number 591
Merge number 592
Merge number 593
Merge number 594
Merge number 595
Merge number 596
Merge number 597
Merge number 598
Merge number 599
Merge number 600
Merge number 601
Merge number 602
Merge number 603
Merge number 604
Merge number 605
Merge number 606
Merge number 607
Merge number 608
Merge number 609
Merge number 610
Merge number 611
Merge number 612
Merge number 613
Merge number 614
Merge number 615
Merge number 616
Merge number 617
Merge number 618
Merge number 619
Merge number 620
Merge number 621
Merge number 622
Merge number 623
Merge number 624
Merge number 625
Merge number 626
Merge number 627
Merge number 628
Merge number 629
Merge number 630
Merge number 631
Merge number 632
Merge number 633
Merge number 634
Merge number 635
Merge number 636
Merge number 637
Merge number 638
Merge number 639
Merge number 640
Merge number 641
Merge number 642
Merge number 643
Merge number 644
Merge number 645
Merge number 646
Merge number 647
Merge number 648
Merge number 649
Merge number 650
Merge number 651
Merge number 652
Merge number 653
Merge number 654
Merge number 655
Merge number 656
Merge number 657
Merge number 658
Merge number 659
Merge number 660
Merge number 661
Merge number 662
Merge number 663
Merge number 664
Merge number 665
Merge number 666
Merge number 667
Merge number 668
Merge number 669
Merge number 670
Merge number 671
Merge number 672
Merge number 673
Merge number 674
Merge number 675
Merge number 676
Merge number 677
Merge number 678
Merge number 679
Merge number 680
Merge number 681
Merge number 682
Merge number 683
Merge number 684
Merge number 685
Merge number 686
Merge number 687
Merge number 688
Merge number 689
Merge number 690
Merge number 691
Merge number 692
Merge number 693
Merge number 694
Merge number 695
Merge number 696
Merge number 697
Merge number 698
Merge number 699
Merge number 700
Merge number 701
Merge number 702
Merge number 703
Merge number 704
Merge number 705
Merge number 706
Merge number 707
Merge number 708
Merge number 709
Merge number 710
Merge number 711
Merge number 712
Merge number 713
Merge number 714
Merge number 715
Merge number 716
Merge number 717
Merge number 718
Merge number 719
Merge number 720
Merge number 721
Merge number 722
Merge number 723
Merge number 724
Merge number 725
Merge number 726
Merge number 727
Merge number 728
Merge number 729
Merge number 730
Merge number 731
Merge number 732
Merge number 733
Merge number 734
Merge number 735
Merge number 736
Merge number 737
Merge number 738
Merge number 739
Merge number 740
Merge number 741
Merge number 742
Merge number 743
Merge number 744
Merge number 745
Merge number 746
Merge number 747
Merge number 748
Merge number 749
Merge number 750
Merge number 751
Merge number 752
Merge number 753
Merge number 754
Merge number 755
Merge number 756
Merge number 757
Merge number 758
Merge number 759
Merge number 760
Merge number 761
Merge number 762
Merge number 763
Merge number 764
Merge number 765
Merge number 766
Merge number 767
Merge number 768
Merge number 769
Merge number 770
Merge number 771
Merge number 772
Merge number 773
Merge number 774
Merge number 775
Merge number 776
Merge number 777
Merge number 778
Merge number 779
Merge number 780
Merge number 781
Merge number 782
Merge number 783
Merge number 784
Merge number 785
Merge number 786
Merge number 787
Merge number 788
Merge number 789
Merge number 790
Merge number 791
Merge number 792
Merge number 793
Merge number 794
Merge number 795
Merge number 796
Merge number 797
Merge number 798
Merge number 799
Merge number 800
Merge number 801
Merge number 802
Merge number 803
Merge number 804
Merge number 805
Merge number 806
Merge number 807
Merge number 808
Merge number 809
Merge number 810
Merge number 811
Merge number 812
Merge number 813
Merge number 814
Merge number 815
Merge number 816
Merge number 817
Merge number 818
Merge number 819
Merge number 820
Merge number 821
Merge number 822
Merge number 823
Merge number 824
Merge number 825
Merge number 826
Merge number 827
Merge number 828
Merge number 829
Merge number 830
Merge number 831
Merge number 832
Merge number 833
Merge number 834
Merge number 835
Merge number 836
Merge number 837
Merge number 838
Merge number 839
Merge number 840
Merge number 841
Merge number 842
Merge number 843
Merge number 844
Merge number 845
Merge number 846
Merge number 847
Merge number 848
Merge number 849
Merge number 850
Merge number 851
Merge number 852
Merge number 853
Merge number 854
Merge number 855
Merge number 856
Merge number 857
Merge number 858
Merge number 859
Merge number 860
Merge number 861
Merge number 862
Merge number 863
Merge number 864
Merge number 865
Merge number 866
Merge number 867
Merge number 868
Merge number 869
Merge number 870
Merge number 871
Merge number 872
Merge number 873
Merge number 874
Merge number 875
Merge number 876
Merge number 877
Merge number 878
Merge number 879
Merge number 880
Merge number 881
Merge number 882
Merge number 883
Merge number 884
Merge number 885
Merge number 886
Merge number 887
Merge number 888
Merge number 889
Merge number 890
Merge number 891
Merge number 892
Merge number 893
Merge number 894
Merge number 895
Merge number 896
Merge number 897
Merge number 898
Merge number 899
Merge number 900
Merge number 901
Merge number 902
Merge number 903
Merge number 904
Merge number 905
Merge number 906
Merge number 907
Merge number 908
Merge number 909
Merge number 910
Merge number 911
Merge number 912
Merge number 913
Merge number 914
Merge number 915
Merge number 916
Merge number 917
Merge number 918
Merge number 919
Merge number 920
Merge number 921
Merge number 922
Merge number 923
Merge number 924
Merge number 925
Merge number 926
Merge number 927
Merge number 928
Merge number 929
Merge number 930
Merge number 931
Merge number 932
Merge number 933
Merge number 934
Merge number 935
Merge number 936
Merge number 937
Merge number 938
Merge number 939
Merge number 940
Merge number 941
Merge number 942
Merge number 943
Merge number 944
Merge number 945
Merge number 946
Merge number 947
Merge number 948
Merge number 949
Merge number 950
Merge number 951
Merge number 952
Merge number 953
Merge number 954
Merge number 955
Merge number 956
Merge number 957
Merge number 958
Merge number 959
Merge number 960
Merge number 961
Merge number 962
Merge number 963
Merge number 964
Merge number 965
Merge number 966
Merge number 967
Merge number 968
Merge number 969
Merge number 970
Merge number 971
Merge number 972
Merge number 973
Merge number 974
Merge number 975
Merge number 976
Merge number 977
Merge number 978
Merge number 979
Merge number 980
Merge number 981
Merge number 982
Merge number 983
Merge number 984
Merge number 985
Merge number 986
Merge number 987
Merge number 988
Merge number 989
Merge number 990
Merge number 991
Merge number 992
Merge number 993
Merge number 994
Merge number 995
Merge number 996
Merge number 997
Merge number 998
Merge number 999
{txt}
{com}. 
. drop finalstratum
{txt}
{com}. 
. // rename PONTIANAK to MEMPAWAH
. replace namakabupaten = "MEMPAWAH" if namakabupaten == "PONTIANAK"
{txt}(1 real change made)

{com}. 
. preserve
{txt}
{com}. keep namakabupaten treated_sep18*
{txt}
{com}. save "$importable/resample1000_phase.dta", replace
{txt}{p 0 4 2}
file {bf}
/Users/clotairemit.edu/Dropbox (MIT)/J-PAL Raskin Transition/10_Analysis&Results/Impact Eval Analysis/01_Data/01_Importable/resample1000_phase.dta{rm}
saved
{p_end}

{com}. restore
{txt}
{com}. 
. drop treated_sep18*
{txt}
{com}. save "$importable/resample1000.dta", replace
{txt}{p 0 4 2}
file {bf}
/Users/clotairemit.edu/Dropbox (MIT)/J-PAL Raskin Transition/10_Analysis&Results/Impact Eval Analysis/01_Data/01_Importable/resample1000.dta{rm}
saved
{p_end}

{com}. 
. // check that ratio of treated/control is reasonable
. local sum = 0
{txt}
{com}. foreach var of varlist treated* {c -(}
{txt}  2{com}.   qui summ `var'
{txt}  3{com}.   local sum = `sum' + `r(mean)'
{txt}  4{com}. {c )-}
{txt}
{com}. 
. di `sum'/1000
{res}.3816381
{txt}
{com}. di 42/105
{res}.4
{txt}
{com}. 
. cap log close
{smcl}
{com}{sf}{ul off}